package com.ruoyi.system.api.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import java.util.Date;

/**
 * 仪器设备附属信息 仪器设备附属信息对象 st_equipment_accessory
 * 
 * @author ruoyi
 * @date 2020-03-09
 */
@ApiModel(value="仪器设备附属信息StEquipmentAccessory",description="仪器设备附属信息StEquipmentAccessory") // 用来描述封装的参数对象与返回的参数对象
@JsonInclude(JsonInclude.Include.NON_NULL)
public class StEquipmentAccessory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @ApiModelProperty(value = "主键ID",name="id",required = false,dataType="int",example="主键ID")
    private Long id;

    /** service号 */
    @Excel(name = "service号")
    @ApiModelProperty(value = "Service号",name="serviceNo",required = true,dataType="String",example="serviceNo")
    private String serviceNo;

    /** 工程师ID */
    @Excel(name = "工程师ID")
    @ApiModelProperty(value = "工程师ID",name="enginnerId",required = true,dataType="int",example="工程师ID")
    private Long enginnerId;

    /** 附件名称 */
    @Excel(name = "附件名称")
    @ApiModelProperty(value = "附件名称",name="accessoryName",required = true,dataType="String",example="附件名称")
    private String accessoryName;

    /** 附件序列号 */
    @Excel(name = "附件序列号")
    @ApiModelProperty(value = "附件序列号",name="serialNumber",required = true,dataType="String",example="附件序列号")
    private String serialNumber;

    /** 保修开始时间 */
    @Excel(name = "保修开始时间", width = 30, dateFormat = "yyyy-MM-dd")
   // @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @ApiModelProperty(value = "保修开始时间 yyyy-MM-dd HH:mm",name="warrantyStartTime",required = false,dataType="String",example="保修开始时间")
    private String warrantyStartTime;

    /** 保修结束时间 */
    @Excel(name = "保修结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    //@JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @ApiModelProperty(value = "保修结束时间 yyyy-MM-dd HH:mm",name="warrantyEndTime",required = false,dataType="String",example="保修结束时间")
    private String warrantyEndTime;

    /** 是否同步到CC，0未同步、1已同步 */
    @Excel(name = "是否同步到CC，0未同步、1已同步")
    @ApiModelProperty(value = "是否同步到CC，0未同步、1已同步",name="syncFlag",required = true,dataType="String",example="是否同步到CC，0未同步、1已同步")
    private String syncFlag;

    /** 同步到CC的时间 */
    @Excel(name = "同步到CC的时间", width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "同步到CC的时间 yyyy-MM-dd HH:mm:ss",name="syncTime",required = true,dataType="String",example="同步到CC的时间")
    private Date syncTime;

    /** 删除标志（0代表存在 2代表删除） */
    @ApiModelProperty(value = "删除标志（0代表存在 2代表删除）",name="delFlag",required = true,dataType="String",example="删除标志（0代表存在 2代表删除）")
    private String delFlag;

    /** 辅助id */
    @Excel(name = "辅助id")
    @ApiModelProperty(value = "辅助id",name="helpId",required = true,dataType="String",example="辅助id")
    private String helpId;

    /** st_installation_quality_report 主键 */
    @ApiModelProperty(value = "st_installation_quality_report 主键",name="installationQualityReportId",required = true,dataType="String",example="st_installation_quality_report 主键")
    private Long installationQualityReportId;

    @ApiModelProperty(value = "仪器编号",name="instrumentNo",required = true,dataType="String",example="仪器编号")
    private String instrumentNo;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setServiceNo(String serviceNo) 
    {
        this.serviceNo = serviceNo;
    }

    public String getServiceNo() 
    {
        return serviceNo;
    }
    public void setEnginnerId(Long enginnerId) 
    {
        this.enginnerId = enginnerId;
    }

    public Long getEnginnerId() 
    {
        return enginnerId;
    }
    public void setAccessoryName(String accessoryName) 
    {
        this.accessoryName = accessoryName;
    }

    public String getAccessoryName() 
    {
        return accessoryName;
    }
    public void setSerialNumber(String serialNumber) 
    {
        this.serialNumber = serialNumber;
    }

    public String getSerialNumber() 
    {
        return serialNumber;
    }
    public void setWarrantyStartTime(String warrantyStartTime)
    {
        this.warrantyStartTime = warrantyStartTime;
    }

    public String getWarrantyStartTime()
    {
        return warrantyStartTime;
    }
    public void setWarrantyEndTime(String warrantyEndTime)
    {
        this.warrantyEndTime = warrantyEndTime;
    }

    public String getWarrantyEndTime()
    {
        return warrantyEndTime;
    }
    public void setSyncFlag(String syncFlag) 
    {
        this.syncFlag = syncFlag;
    }

    public String getSyncFlag() 
    {
        return syncFlag;
    }
    public void setSyncTime(Date syncTime) 
    {
        this.syncTime = syncTime;
    }

    public Date getSyncTime() 
    {
        return syncTime;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }
    public void setHelpId(String helpId) 
    {
        this.helpId = helpId;
    }

    public String getHelpId() 
    {
        return helpId;
    }

    public Long getInstallationQualityReportId() {
        return installationQualityReportId;
    }

    public void setInstallationQualityReportId(Long installationQualityReportId) {
        this.installationQualityReportId = installationQualityReportId;
    }

    public String getInstrumentNo() {
        return instrumentNo;
    }

    public void setInstrumentNo(String instrumentNo) {
        this.instrumentNo = instrumentNo;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("serviceNo", getServiceNo())
            .append("enginnerId", getEnginnerId())
            .append("accessoryName", getAccessoryName())
            .append("serialNumber", getSerialNumber())
            .append("warrantyStartTime", getWarrantyStartTime())
            .append("warrantyEndTime", getWarrantyEndTime())
            .append("remark", getRemark())
            .append("syncFlag", getSyncFlag())
            .append("syncTime", getSyncTime())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .append("helpId", getHelpId())
            .append("installationQualityReportId", getInstallationQualityReportId())
            .toString();
    }
}
